using ASP;
using HoWave.Web;
using HoWave.Web.Shop.Member;
using System;
using System.Data;
using System.Web.Profile;
using System.Web.SessionState;
using System.Web.UI.WebControls;
public class Member_ToChashDetails : Member, IRequiresSessionState
{
	protected Label lblToCashID;
	protected Label lblPayType;
	protected Label lblToCashMoney;
	protected Label lblTCAccountName;
	protected Label lblBank;
	protected Label lblTCAccoutID;
	protected Label lblTChApplyTime;
	protected Label lblMemberDesc;
	protected Label lblTCStuate;
	private ToCashBLL _ToCashBLL = null;
	protected DefaultProfile Profile
	{
		get
		{
			return (DefaultProfile)this.Context.Profile;
		}
	}
	protected global_asax ApplicationInstance
	{
		get
		{
			return (global_asax)this.Context.ApplicationInstance;
		}
	}
	protected ToCashBLL to_ToCashBLL
	{
		get
		{
			ToCashBLL toCashBLL;
			if (this._ToCashBLL == null)
			{
				this._ToCashBLL = new ToCashBLL(this.conn);
				toCashBLL = this._ToCashBLL;
			}
			else
			{
				toCashBLL = this._ToCashBLL;
			}
			return toCashBLL;
		}
	}
	protected void Page_Load(object sender, EventArgs e)
	{
		if (!base.IsPostBack)
		{
			string toChashID = base.Request.QueryString["ID"].ToString();
			DataTable toChashByToChashID = this.to_ToCashBLL.GetToChashByToChashID(toChashID);
			this.lblBank.Text = toChashByToChashID.Rows[0]["Bank"].ToString();
			this.lblMemberDesc.Text = toChashByToChashID.Rows[0]["MemberDesc"].ToString();
			this.lblPayType.Text = toChashByToChashID.Rows[0]["NumberType"].ToString();
			this.lblTCAccountName.Text = toChashByToChashID.Rows[0]["TCAccountName"].ToString();
			this.lblTCAccoutID.Text = toChashByToChashID.Rows[0]["TCAccoutID"].ToString();
			this.lblTChApplyTime.Text = toChashByToChashID.Rows[0]["TChApplyTime"].ToString();
			string a = toChashByToChashID.Rows[0]["TCStuate"].ToString();
			if (a == "1")
			{
				this.lblTCStuate.Text = "等待审核";
			}
			else
			{
				if (a == "2")
				{
					this.lblTCStuate.Text = "已审核";
				}
				else
				{
					if (a == "3")
					{
						this.lblTCStuate.Text = "已关闭";
					}
				}
			}
			this.lblToCashID.Text = toChashByToChashID.Rows[0]["ToCashID"].ToString();
			this.lblToCashMoney.Text = toChashByToChashID.Rows[0]["ToCashMoney"].ToString();
		}
	}
}
